package com.hetao.assist.dal.mapper;


import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Mapper 基类
 * Created by xuanwu on 2015/10/23.
 */
public interface BaseMapper<T, ID extends Serializable> {

    T get(ID id);

    int insert(T entity);

    int delete(ID id);

    int update(T entity);

    List<T> list(T entity);

}
